<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes" />
<xsl:template match="/">
<html>
	<head>
		<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>
	</head>
	<body>
		 <xsl:apply-templates/>	
	</body>
</html>
</xsl:template>

				<xsl:template match="SCENARIO">
					<div class="scenario">
			   		<h1><xsl:value-of select="@name" /></h1>
			   		<xsl:apply-templates select="SITUATION" />
			   		</div>
			   </xsl:template>
  			  <xsl:template match="SITUATION">
			   		<h2><xsl:value-of select="@name" /></h2>
			   		<xsl:apply-templates select="CASE" />
			   </xsl:template>
			   <xsl:template match="CASE">
			   		<h3><xsl:value-of select="@lib" /></h3>
			   		<ul>
			   		<xsl:apply-templates select="OPERATOR" />
			   		<xsl:apply-templates select="EXPRESSION" />
			   		</ul>
			   </xsl:template>
			   <xsl:template match="OPERATOR">
			   		<p><xsl:value-of select="@name" /></p>
			   		<xsl:apply-templates select="OPERATOR" />
			   		<xsl:apply-templates select="EXPRESSION" />
			   </xsl:template> 
			   <xsl:template match="EXPRESSION">
			   		<p><xsl:value-of select="@lib" /></p>
			   </xsl:template>

</xsl:stylesheet>